package com.wlz.demo;

/**
 * 项目经理
 */
public class PEmployee extends Employee {

    /**
     * 项目奖金
     */
    private Double projectBonus;

    public PEmployee() {
        super();
    }

    public Double getProjectBonus() {
        return projectBonus;
    }

    public void setProjectBonus(Double projectBonus) {
        this.projectBonus = projectBonus;
    }

    /**
     *  计算工资
     * @return
     */
    @Override
    public String calculateSalary() {
        Double calculateSalary = this.getProjectBonus() + this.getBasicWage();
        return super.getBasicWage() + "+" + this.getProjectBonus() + "=" +  calculateSalary;
    }
}
